package com.gaoyi.crm.control.popup;


import android.content.Context;
import android.widget.PopupWindow;

import androidx.annotation.NonNull;
import androidx.viewbinding.ViewBinding;

public abstract class BasePopupWindow<V extends ViewBinding> extends PopupWindow {

    protected final Context mContext;
    protected V mBinding;

    public BasePopupWindow(@NonNull Context context) {
        super(context);
        mContext = context;
        mBinding = getViewBinding();
        initView();
        setContentView(mBinding.getRoot());
    }

    protected abstract void initView();

    protected abstract V getViewBinding();

}
